package chixing.day20.work3;

public class Contract {
    private int contractId;
    private String supplier;
    private String department;
    private double contractAmount;
    private ContractStatus contractStatus;

    public Contract() {
    }

    public Contract(int contractId, String supplier, String department, double contractAmount, ContractStatus contractStatus) {
        this.contractId = contractId;
        this.supplier = supplier;
        this.department = department;
        this.contractAmount = contractAmount;
        this.contractStatus = contractStatus;
    }

    public int getContractId() {
        return contractId;
    }

    public void setContractId(int contractId) {
        this.contractId = contractId;
    }

    public String getSupplier() {
        return supplier;
    }

    public void setSupplier(String supplier) {
        this.supplier = supplier;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public double getContractAmount() {
        return contractAmount;
    }

    public void setContractAmount(double contractAmount) {
        this.contractAmount = contractAmount;
    }

    public ContractStatus getContractStatus() {
        return contractStatus;
    }

    public void setContractStatus(ContractStatus contractStatus) {
        this.contractStatus = contractStatus;
    }

    @Override
    public String toString() {
        return "Contract{" +
                "contractId=" + contractId +
                ", supplier='" + supplier + '\'' +
                ", department='" + department + '\'' +
                ", contractAmount=" + contractAmount +
                ", contractStatus=" + contractStatus +
                '}';
    }
}

